package com.njtoyo.taxi.admin.rest.wrapper.business.driver;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import javax.validation.constraints.NotNull;
import java.math.BigDecimal;
import java.util.Date;

@Data
@ApiModel(value = "司机查询")
public class RideClickFarmingQueryWrapper {

    @ApiModelProperty(value = "成交单阈值")
    @NotNull(message = "成交单阈值 不能为空")
    private Integer rideCountThreshold;

    @ApiModelProperty(value = "订单金额条件")
    @NotNull(message = "订单金额条件 不能为空")
    private BigDecimal amountCondition;

    @ApiModelProperty(value = "带金额条件的成交单阈值")
    @NotNull(message = "带金额条件的成交单阈值 不能为空")
    private Integer amountConditionalRideCountThreshold;

    @ApiModelProperty("开始时间，格式：yyyy-MM-dd")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @NotNull(message = "开始时间必传")
    private Date startDate;

    @ApiModelProperty("结束时间，格式：yyyy-MM-dd")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @NotNull(message = "结束时间必传")
    private Date endDate;
}
